import { request } from '../request'
export default {
  // 账号登录
  API_LOGIN_POST(data = {}) {
    return request({
      url: `/api/member/login`,
      method: 'post',
      data,
      headers: {}
    })
  },
  API_MOBILELOGIN_POST(data = {}) {
    return request({
      url: `/api/member/mobilelogin`,
      method: 'post',
      data,
      headers: {}
    })
  },
  API_WEIXIN_POST(data = {}) {
    return request({
      url: `/api/member/third`,
      method: 'post',
      data
    })
  },
  API_CHONGZHI_POST(data = {}) {
    return request({
      url: `/api/member/resetpwd`,
      method: 'post',
      data
    })
  },
  API_USER_AGREEMENT(params = {}) {
    return request({
      url: `/api/index/useragreement`,
      method: 'get',
      params,
      headers: {}
    })
  },
  API_ABOUT_US(params = {}) {
    return request({
      url: `/api/index/aboutus`,
      method: 'get',
      params,
      headers: {}
    })
  },
  API_PRIVACY_AGREEMENT(params = {}) {
    return request({
      url: `/api/index/privacyagreement`,
      method: 'get',
      params,
      headers: {}
    })
  },
  API_SERVICE_AGREEMENT(params = {}) {
    return request({
      url: `/api/index/serviceagreement`,
      method: 'get',
      params,
      headers: {}
    })
  },
}
